package com.itheima.mapper;

import com.itheima.domain.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

Users findByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

//    List<Users> findAll();

    void changePassword(Users users);

    Users findByUserId(String id);

    List<Users> findAll();

    int save(Users userInfo);

    int deleteByIds(String[] id);

    Users findByRoleId(String id);

    Users findById1(String id);

    List<Users> findLikeName(String name);

    int update(Map map);

    void update1(Users userInfo);


    Users findAllPermission(String userId);
}
